For each cell, you can define entries to be valid. Invalid entries to a cell will be rejected.
セルごとにエントリが有効なことを定義できます。 セルに対して無効なエントリは却下されます。
![]() | The validity rule is activated when a new value is entered. If an invalid value has already been inserted into the cell, or if you insert a value in the cell either with drag-and-drop or by copying and pasting, the validity rule will not take effect.
入力規則は、新しい値が入力されるとアクティブになります。 無効な値がすでにセル内に挿入されている場合やドラッグ&ドロップまたはコピー&ペーストのいずれかでセルに値を入力する場合は、入力規則は適用されません。 |
![]() | You can choose Tools - Detective at any time and choose the command Mark Invalid Data to display which cells contain invalid values.
いつでも ツール - トレース を選択して、コマンド 無効な値を丸で囲む を選択し、どのセルが無効な値を含むかを表示できます。 |
Select the cells for which you want to define a new validity rule.
新しい入力規則を定義するセルを選択します。
Choose .
を選択します。
On the Criteria tab page, enter the conditions for new values entered into cells.
条件 タブページでセルに入力される新しい値に対する条件を入力します。
In the Allow field, select an option.
許可 フィールドでオプションを選択します。
If you select "Whole Numbers", values such as "12.5" are not allowed. Choosing "Date" allows date information both in the local date format as well as in the form of a serial date. Similarly, the "Time" condition permits time values such as "12:00" or serial time numbers. "Text Length" stipulates that cells are allowed to contain text only.
「整数」を選択すると、12.5 などの値は許可されません。 「日付」を選択すると、シリアル日付の書式に加えてローカルの日付書式の日付情報が許可されます。 同様に、「時間」条件は、12:00 などの時間値またはシリアル時間番号を許可します。 「テキストの長さ」は、そのセルに入力できるのはテキストだけであることを規定します。
Select "List" to enter a list of valid entries.
有効なエントリのリストを入力するには、「リスト」を選択します。
Select the next condition under Data. According to what you choose, additional options will be selectable.
データ で次の条件を選択します。 選択内容によっては、追加オプションを選択できます。
After you have determined the conditions for cell validity, you can use the other two tab pages to create message boxes:
セルの入力規則の条件を決定したら、ほかの 2 つのタブページを使用してメッセージボックスを作成できます。
On the Input Help tab page, enter the title and the text of the tip, which will then be displayed if the cell is selected.
見出し 入力時メッセージ では、セルを選択した際に表示するメッセージを定義します。
On the Error Alert tab page, select the action to be carried out in the event of an error.
見出し エラーメッセージ では、エラー入力を行った際のアクションを選択します。
If you select "Stop" as the action, invalid entries are not accepted, and the previous cell contents are retained.
アクションに「中止」を選択した場合、無効な値は拒否され、元の値に戻ります。
Select "Warning" or "Information" to display a dialog in which the entry can either be canceled or accepted.
「警告」または「情報」を選択して、エントリをキャンセルまたは承認できるダイアログを表示します。
If you select "Macro", then by using the Browse button you can specify a macro to be run in the event of an error.
「マクロ」を選択した場合、ボタン 検索 を使用して、エラー時に実行するマクロを指定できます。
To display the error message, select Show error message when invalid values are entered.
エラーメッセージを表示するには、無効な値の入力時にエラーメッセージを表示する を選択します。
![]() | After changing the action for a cell on the Error Alert tab page and closing the dialog with OK, you must first select another cell before the change takes effect.
見出し エラーメッセージ でアクションを変更して OK ボタンでダイアログを閉じた場合、まず別のセルを選択して機能を有効にする必要があります。 |